package com.example.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author lxk
 */
@RestController
public class DemoController {
    @GetMapping("/time")
    public String time(){
        return LocalDateTime.now().toString();
    }
}
